package pcb.views.uievents 
{
	import flash.events.Event;
	import pcb.views.sharedAssets.menu.TreeNode;
	
	/**
	 * ...
	 * @author ...
	 */
	public class TreeNodeEvent extends Event
	{
	
		public static const CLICKED:String = "clicked";
		
		private var _selectedNode:TreeNode;
		
		//public function TreeNodeEvent(type:String, in_moduleName:String, in_sectionName:String, in_lessonID:String) 
		public function TreeNodeEvent(type:String, node:TreeNode) 
		{
			selectedNode = node;
			
			super(type, false, false);
		}
		
		 // override clone so the event can be redispatched
        public override function clone():Event {
            return new TreeNodeEvent(type, selectedNode);
        }
		
		public function get selectedNode():TreeNode { return _selectedNode; }
		
		public function set selectedNode(value:TreeNode):void 
		{
			_selectedNode = value;
		}
		
	}
	
}